/
LRUCache`2.xml
156 lines (156 loc) · 8.1 KB
/
LRUCache`2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<Type Name="LRUCache<TKey,TValue>" FullName="MonoTouch.Dialog.Utilities.LRUCache<TKey,TValue>">
<TypeSignature Language="C#" Value="public class LRUCache<TKey,TValue> where TValue : class, IDisposable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit LRUCache`2<TKey, class (class System.IDisposable) TValue> extends System.Object" />
<TypeSignature Language="DocId" Value="T:MonoTouch.Dialog.Utilities.LRUCache`2" />
<TypeSignature Language="F#" Value="type LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)> = class" />
<AssemblyInfo>
<AssemblyName>MonoTouch.Dialog-1</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeParameters>
<TypeParameter Name="TKey" />
<TypeParameter Name="TValue">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
<InterfaceName>System.IDisposable</InterfaceName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<typeparam name="TKey">The type of key for the LRU cache.</typeparam>
<typeparam name="TValue">The type for the values of the LRU cache.</typeparam>
<summary>Implements a Least Recently Used Cache</summary>
<remarks>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public LRUCache (int entryLimit);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 entryLimit) cil managed" />
<MemberSignature Language="DocId" Value="M:MonoTouch.Dialog.Utilities.LRUCache`2.#ctor(System.Int32)" />
<MemberSignature Language="F#" Value="new MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)> : int -> MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)>" Usage="new MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> System.IDisposable)> entryLimit" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>MonoTouch.Dialog-1</AssemblyName>
</AssemblyInfo>
<Parameters>
<Parameter Name="entryLimit" Type="System.Int32" />
</Parameters>
<Docs>
<param name="entryLimit">Maximum number of entries on the LRU cache.</param>
<summary>Constructs a new instance of the LRU cache with a limit based on the number of slots in the cache.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public LRUCache (int entryLimit, int sizeLimit, Func<TValue,int> slotSizer);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 entryLimit, int32 sizeLimit, class System.Func`2<!TValue, int32> slotSizer) cil managed" />
<MemberSignature Language="DocId" Value="M:MonoTouch.Dialog.Utilities.LRUCache`2.#ctor(System.Int32,System.Int32,System.Func{`1,System.Int32})" />
<MemberSignature Language="F#" Value="new MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)> : int * int * Func<'Value, int (requires 'Value : null and 'Value :> IDisposable)> -> MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> IDisposable)>" Usage="new MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> System.IDisposable)> (entryLimit, sizeLimit, slotSizer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>MonoTouch.Dialog-1</AssemblyName>
</AssemblyInfo>
<Parameters>
<Parameter Name="entryLimit" Type="System.Int32" />
<Parameter Name="sizeLimit" Type="System.Int32" />
<Parameter Name="slotSizer" Type="System.Func<TValue,System.Int32>" />
</Parameters>
<Docs>
<param name="entryLimit">Maximum number of entries on the LRU cache.</param>
<param name="sizeLimit">Maximum amount of bytes to keep in memory.</param>
<param name="slotSizer">Function that returns the amount of memory that an object of the specified value holds.</param>
<summary>Constructs a new instance of the LRU cache with a limit based on the number of slots and a memory size limit.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="Item">
<MemberSignature Language="C#" Value="public TValue this[TKey key] { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance !TValue Item(!TKey)" />
<MemberSignature Language="DocId" Value="P:MonoTouch.Dialog.Utilities.LRUCache`2.Item(`0)" />
<MemberSignature Language="F#" Value="member this.Item('Key) : 'Value with get, set" Usage="MonoTouch.Dialog.Utilities.LRUCache<'Key, 'Value (requires 'Value : null and 'Value :> System.IDisposable)>.Item" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>MonoTouch.Dialog-1</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TValue</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="TKey" />
</Parameters>
<Docs>
<param name="key">Key to lookup</param>
<summary>Retrieves or sets value in the LRU cache</summary>
<value>
</value>
<remarks>
<para>
When getting a value, it will returns null if the value was not found on the cache.
</para>
<para>
When setting a value if the key was already in the cache,
the entry is flagged as recently used. If not, the key is
added as the most recently used key. Adding a new key to
the cache might cause existing values in the cache to be
Disposed, either because of the limit of active entries
has been exceeded or because the total amount of byte has
been exceeded.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Purge">
<MemberSignature Language="C#" Value="public void Purge ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Purge() cil managed" />
<MemberSignature Language="DocId" Value="M:MonoTouch.Dialog.Utilities.LRUCache`2.Purge" />
<MemberSignature Language="F#" Value="member this.Purge : unit -> unit" Usage="lRUCache.Purge " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>MonoTouch.Dialog-1</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Purges the cache, and calls Dispose on all of the elements of the cache.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public override string ToString ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
<MemberSignature Language="DocId" Value="M:MonoTouch.Dialog.Utilities.LRUCache`2.ToString" />
<MemberSignature Language="F#" Value="override this.ToString : unit -> string" Usage="lRUCache.ToString " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>MonoTouch.Dialog-1</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
</summary>
<returns>
</returns>
<remarks>
</remarks>
</Docs>
</Member>
</Members>
</Type>